//
//  SEGSettleApplyManager.m
//  TableDemo
//
//  Created by Clavis on 2019/6/13.
//  Copyright © 2019 Clavis. All rights reserved.
//

#import "SEGSettleApplyManager.h"

@implementation SEGSettleApplyManager

/**
 入驻申请

 @param name name
 @param tel tel
 @param industry industry
 @param companyName companyName
 @param imagePath 图片地址例：/212/23121.pang,/2131312/13123131.pang
 @param finished finishedr
 */
+ (void)requestSettleApplyWithName:(NSString *)name tel:(NSString *)tel industry:(NSString *)industry companyName:(NSString *)companyName imagePath:(NSString *)imagePath finished:(SEGNetworkReponse)finished {
    NSString *urlString = [SEGServerManager serverUrlJoint:kClientRootURL,@"/project-operation-app/companyEnter/add",nil];
    NSMutableDictionary *mParams = [@{@"appType" : @(3),
                                      @"appId" : [SEGPlatformManager segAppPlatformCode],
                                      @"appName" : kAppName,
                                      @"communityId" : kAccountCommunityID,
                                      @"userName" : name,
                                      @"userTel" : tel,
                                      @"vocation" : industry,
                                      @"companyName" : companyName,
                                      @"imagePath" : imagePath ?: @""
                                    } mutableCopy];
    [SEGHTTPBusinessManager seg_requestJSONWithMethod:POST URLString:urlString parameters:mParams finished:^(BOOL isSuccessed, id result, NSString *codeType, NSString *errorMessage) {
        finished(isSuccessed, result, codeType, errorMessage);
    }];
}

@end
